package cn.jit.service.impl;

import java.util.ArrayList;
import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.jit.dao.ExamDao;
import cn.jit.po.Exam;
import cn.jit.service.ExamService;

@Service("examService")
public class ExamServiceImpl implements ExamService{
	
	@Resource
    private ExamDao examDao;
	
	@Override
	public ArrayList<Exam> getExams(Exam exam){
		ArrayList<Exam> examList = examDao.getExams(exam);
		
		return examList;
	}

	@Override
	public int addExam(Exam exam) {
		
		return examDao.addExam(exam);
	}

	@Override
	public int updateExam(Exam exam) {
		
		return examDao.updateExam(exam);
	}

	@Override
	public Exam getExam(Exam exam) {
		return examDao.getExam(exam);
	}
	
	
	
	
}
